package com.ruoyi.goodsInfo.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.goodsInfo.domain.Goods;
import com.ruoyi.goodsInfo.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

/**
 * goodsInfoMapper接口
 *
 * @author ruoyi
 * @date 2024-01-08
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 查询goodsInfo
     *
     * @param id goodsInfo主键
     * @return goodsInfo
     */
    public Goods selectGoodsById(Long id);

    /**
     * 查询goodsInfo列表
     *
     * @param goods goodsInfo
     * @return goodsInfo集合
     */
    public List<Goods> selectGoodsList(Goods goods);

    /**
     * 新增goodsInfo
     *
     * @param goods goodsInfo
     * @return 结果
     */
    public int insertGoods(Goods goods);

    /**
     * 修改goodsInfo
     *
     * @param goods goodsInfo
     * @return 结果
     */
    public int updateGoods(Goods goods);

    /**
     * 删除goodsInfo
     *
     * @param id goodsInfo主键
     * @return 结果
     */
    public int deleteGoodsById(Long id);

    /**
     * 批量删除goodsInfo
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGoodsByIds(Long[] ids);


    List<GoodsVo> searchList(@Param("goodsName") String goodsName,@Param("priceLevel") String priceLevel);
}
